<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="format-detection" content="telephone=no"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><link rel="icon" href="/yue-nice/images/icons/favicon-16x16.png?v=2.1.1" type="image/png" sizes="16x16"><link rel="icon" href="/yue-nice/images/icons/favicon-32x32.png?v=2.1.1" type="image/png" sizes="32x32"><meta name="description" content="Live2D Widget                            特性 Feature       在网页中添加 Live2D 看板娘。兼容 PJAX，支持无刷新加载。Add Live2D widget to web page. Compatible with PJAX. 警告：本项目使用了大量 ES6 语法，不支持 IE 11 等老旧浏览器">
<meta property="og:type" content="website">
<meta property="og:title" content="快乐茶茶">
<meta property="og:url" content="http://ymy-nice.gitee.io/yue-nice/live2d-widget-master/README.html">
<meta property="og:site_name" content="快乐茶茶">
<meta property="og:description" content="Live2D Widget                            特性 Feature       在网页中添加 Live2D 看板娘。兼容 PJAX，支持无刷新加载。Add Live2D widget to web page. Compatible with PJAX. 警告：本项目使用了大量 ES6 语法，不支持 IE 11 等老旧浏览器">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://forthebadge.com/images/badges/built-with-love.svg">
<meta property="og:image" content="https://forthebadge.com/images/badges/uses-html.svg">
<meta property="og:image" content="https://forthebadge.com/images/badges/made-with-javascript.svg">
<meta property="og:image" content="https://forthebadge.com/images/badges/contains-cat-gifs.svg">
<meta property="og:image" content="https://forthebadge.com/images/badges/powered-by-electricity.svg">
<meta property="og:image" content="https://forthebadge.com/images/badges/makes-people-smile.svg">
<meta property="og:image" content="http://ymy-nice.gitee.io/yue-nice/live2d-widget-master/assets/screenshot-2.png">
<meta property="og:image" content="http://ymy-nice.gitee.io/yue-nice/live2d-widget-master/assets/screenshot-3.png">
<meta property="og:image" content="http://ymy-nice.gitee.io/yue-nice/live2d-widget-master/assets/screenshot-1.png">
<meta property="og:image" content="https://live.browserstack.com/images/opensource/browserstack-logo.svg">
<meta property="og:image" content="https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg">
<meta property="article:published_time" content="2023-11-23T04:48:42.178Z">
<meta property="article:modified_time" content="2020-12-03T02:45:38.000Z">
<meta property="article:author" content="小月月">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://forthebadge.com/images/badges/built-with-love.svg"><title> | 快乐茶茶</title><link ref="canonical" href="http://ymy-nice.gitee.io/yue-nice/live2d-widget-master/README.html"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.12.1/css/all.min.css" type="text/css"><link rel="stylesheet" href="/yue-nice/css/index.css?v=2.1.1"><script src="/live2d-widget-master/autoload.js"></script><script>var Stun = window.Stun || {};
var CONFIG = {
  root: '/yue-nice/',
  algolia: undefined,
  fontIcon: {"prompt":{"success":"fas fa-check-circle","info":"fas fa-arrow-circle-right","warning":"fas fa-exclamation-circle","error":"fas fa-times-circle"},"copyBtn":"fas fa-copy"},
  sidebar: {"offsetTop":"20px","tocMaxDepth":6},
  header: {"enable":true,"showOnPost":true,"scrollDownIcon":false},
  postWidget: {"endText":true},
  nightMode: {"enable":true},
  back2top: {"enable":true},
  codeblock: {"style":"default","highlight":"light","wordWrap":false},
  reward: false,
  fancybox: false,
  zoomImage: {"gapAside":"20px"},
  galleryWaterfall: undefined,
  lazyload: false,
  pjax: undefined,
  externalLink: {"icon":{"enable":true,"name":"fas fa-external-link-alt"}},
  shortcuts: undefined,
  prompt: {"copyButton":"复制","copySuccess":"复制成功","copyError":"复制失败"},
  sourcePath: {"js":"js","css":"css","images":"images"},
};

window.CONFIG = CONFIG;</script><meta name="generator" content="Hexo 6.3.0"></head><body><div class="container" id="container"><header class="header" id="header"><div class="header-inner"><nav class="header-nav header-nav--fixed"><div class="header-nav-inner"><div class="header-nav-menubtn"><i class="fas fa-bars"></i></div><div class="header-nav-menu"><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/"><span class="header-nav-menu-item__icon"><i class="fas fa-home"></i></span><span class="header-nav-menu-item__text">首页</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/archives/"><span class="header-nav-menu-item__icon"><i class="fas fa-folder-open"></i></span><span class="header-nav-menu-item__text">归档</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/categories/"><span class="header-nav-menu-item__icon"><i class="fas fa-layer-group"></i></span><span class="header-nav-menu-item__text">分类</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/tags/"><span class="header-nav-menu-item__icon"><i class="fas fa-tags"></i></span><span class="header-nav-menu-item__text">标签</span></a></div></div><div class="header-nav-mode"><div class="mode"><div class="mode-track"><span class="mode-track-moon"></span><span class="mode-track-sun"></span></div><div class="mode-thumb"></div></div></div></div></nav><div class="header-banner"><div class="header-banner-info"><div class="header-banner-info__title">快乐茶茶</div><div class="header-banner-info__subtitle">茶茶</div></div></div></div></header><main class="main" id="main"><div class="main-inner"><div class="content-wrap" id="content-wrap"><div class="content" id="content"><div class="custompage">
        <h1 id="Live2D-Widget"   >
          <a href="#Live2D-Widget" class="heading-link"><i class="fas fa-link"></i></a>Live2D Widget</h1>
      <p><img src="https://forthebadge.com/images/badges/built-with-love.svg"><br><img src="https://forthebadge.com/images/badges/uses-html.svg"><br><img src="https://forthebadge.com/images/badges/made-with-javascript.svg"><br><img src="https://forthebadge.com/images/badges/contains-cat-gifs.svg"><br><img src="https://forthebadge.com/images/badges/powered-by-electricity.svg"><br><img src="https://forthebadge.com/images/badges/makes-people-smile.svg"></p>

        <h2 id="特性-Feature"   >
          <a href="#特性-Feature" class="heading-link"><i class="fas fa-link"></i></a>特性 Feature</h2>
      <p>在网页中添加 Live2D 看板娘。兼容 PJAX，支持无刷新加载。<br>Add Live2D widget to web page. Compatible with PJAX.</p>
<p><strong>警告：本项目使用了大量 ES6 语法，不支持 IE 11 等老旧浏览器。</strong><br><strong>WARNING: This project does not support legacy browsers such as IE 11.</strong></p>

        <h2 id="示例-Demo"   >
          <a href="#示例-Demo" class="heading-link"><i class="fas fa-link"></i></a>示例 Demo</h2>
      <p>在<span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://zhangshuqiao.org/" >米米的博客</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span>的左下角可查看效果。（注：以下人物模型仅供展示之用，本仓库并不包含任何模型。）</p>
<p><img src="assets/screenshot-2.png" width="280"><img src="assets/screenshot-3.png" width="280"><img src="assets/screenshot-1.png" width="270"></p>
<p>你也可以在允许的范围内进行二次开发，这里有一些示例</p>
<ul>
<li><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://mi.js.org/live2d-widget/demo/demo.html" >demo.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span> ，展现基础效果</li>
<li><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://mi.js.org/live2d-widget/demo/login.html" >login.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span> ，仿 NPM 的登陆界面</li>
</ul>

        <h2 id="依赖-Dependencies"   >
          <a href="#依赖-Dependencies" class="heading-link"><i class="fas fa-link"></i></a>依赖 Dependencies</h2>
      <p>本插件需要 Font Awesome (v4 或 v5) 图标支持，请确保相关样式表已在页面中加载。以 Font Awesome v4 为例，请在 <code>&lt;head&gt;</code> 中加入：<br>Font Awesome (v4 or v5) is required for this plugin. Take Font Awesome v4 as an example, please add the following in <code>&lt;head&gt;</code>:</p>
<figure class="highlight xml"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">link</span> <span class="attr">rel</span>=<span class="string">&quot;stylesheet&quot;</span> <span class="attr">href</span>=<span class="string">&quot;https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css&quot;</span>&gt;</span></span><br></pre></td></tr></table></div></figure>
<p>否则图标将无法正常显示。（如果网页中已经加载了任何版本的 Font Awesome，就不要重复加载了）</p>

        <h2 id="使用-Usage"   >
          <a href="#使用-Usage" class="heading-link"><i class="fas fa-link"></i></a>使用 Usage</h2>
      <p>将这一行代码加入 <code>&lt;head&gt;</code> 或 <code>&lt;body&gt;</code>，即可展现出效果：</p>
<figure class="highlight xml"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">&quot;https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br></pre></td></tr></table></div></figure>
<p>如果网站启用了 PJAX，由于看板娘不必每页刷新，因此要注意将相关脚本放到 PJAX 刷新区域之外。</p>
<p>换句话说，如果你是小白，或者只需要最基础的功能，就只用把这一行代码，连同前面加载 Font Awesome 的一行代码，一起放到 html 的 <code>&lt;head&gt;</code> 中即可。<br>对于用各种模版引擎（例如 Nunjucks，Jinja 或者 PHP）生成的页面，也要自行修改，方法类似，只是可能略为麻烦。以 <span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://hexo.io/" >Hexo</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span> 为例，需要在主题相关的 ejs 或 njk 模版中正确配置路径，才可以加载。</p>
<p><strong>但是！我们强烈推荐自己进行配置，否则很多功能是不完整的，并且可能产生问题！</strong><br>如果你有兴趣自己折腾的话，请看下面的详细说明。</p>

        <h3 id="Using-CDN"   >
          <a href="#Using-CDN" class="heading-link"><i class="fas fa-link"></i></a>Using CDN</h3>
      <p>要自定义有关内容，可以把这个仓库 Fork 一份，然后进行修改。这时，使用方法对应地变为</p>
<figure class="highlight xml"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">&quot;https://cdn.jsdelivr.net/gh/username/live2d-widget@latest/autoload.js&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br></pre></td></tr></table></div></figure>
<p>将此处的 <code>username</code> 替换为你的 GitHub 用户名。为了使 CDN 的内容正常刷新，需要创建新的 git tag 并推送至 GitHub 仓库中，否则此处的 <code>@latest</code> 仍然指向更新前的文件。此外 CDN 本身存在缓存，因此改动可能需要一定的时间生效。相关文档：</p>
<ul>
<li><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://git-scm.com/book/en/v2/Git-Basics-Tagging" >Git Basics - Tagging</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></li>
<li><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository" >Managing releases in a repository</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></li>
</ul>

        <h3 id="Self-host"   >
          <a href="#Self-host" class="heading-link"><i class="fas fa-link"></i></a>Self-host</h3>
      <p>你也可以直接把这些文件放到服务器上，而不是通过 CDN 加载。</p>
<ul>
<li>如果你能够通过 <code>ssh</code> 访问你的主机，请把整个仓库克隆到服务器上。执行：<figure class="highlight bash"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /path/to/your/webroot</span><br><span class="line"><span class="comment"># Clone this repository</span></span><br><span class="line">git <span class="built_in">clone</span> https://github.com/stevenjoezhang/live2d-widget.git</span><br></pre></td></tr></table></div></figure></li>
<li>如果你的主机无法用 <code>ssh</code> 连接（例如一般的虚拟主机），请选择 <code>Download ZIP</code>，然后通过 <code>ftp</code> 等方式上传到主机上，再解压到网站的目录下。</li>
<li>如果你是通过 Hexo 等工具部署的静态博客，请在博客源文件（即 <code>source</code>）目录下，执行前述的 <code>git clone</code> 命令。重新部署博客时，相关文件就会自动上传到对应的路径下。为了避免这些文件被 Hexo 插件错误地修改，可能需要设置 <code>skip_render</code>。</li>
</ul>
<p>这样，整个项目就可以通过你的服务器 IP 或者域名从公网访问了。不妨试试能否正常地通过浏览器打开 <code>autoload.js</code> 和 <code>live2d.min.js</code> 等文件，并确认这些文件的内容是完整和正确的。<br>一切正常的话，接下来修改一些配置就行了。（需要通过服务器上的文本编辑器修改；你也可以先在本地完成这一步骤，再上传到服务器上）<br>修改 <code>autoload.js</code> 中的常量 <code>live2d_path</code> 为 <code>live2d-widget</code> 这一目录的 URL。比如说，如果你能够通过</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">https://example.com/path/to/live2d-widget/live2d.min.js</span><br></pre></td></tr></table></div></figure>
<p>访问到 <code>live2d.min.js</code>，那么就把 <code>live2d_path</code> 的值修改为</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">https://example.com/path/to/live2d-widget/</span><br></pre></td></tr></table></div></figure>
<p>路径末尾的 <code>/</code> 一定要加上。具体可以参考 <code>autoload.js</code> 内的注释。<br>完成后，在你要添加看板娘的界面加入</p>
<figure class="highlight xml"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">&quot;https://example.com/path/to/live2d-widget/autoload.js&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br></pre></td></tr></table></div></figure>
<p>就可以加载了。</p>

        <h2 id="后端-API"   >
          <a href="#后端-API" class="heading-link"><i class="fas fa-link"></i></a>后端 API</h2>
      <p><code>initWidget</code> 方法接受名为 <code>apiPath</code> 和 <code>cdnPath</code> 的参数，两者设置其中一项即可。其中 <code>apiPath</code> 为后端 API 的 URL，可以自行搭建，并增加模型（需要修改的内容比较多，此处不再赘述）。而 <code>cdnPath</code> 则是通过 jsDelivr 这样的 CDN 服务加载资源，更加稳定。</p>

        <h2 id="目录结构-Files"   >
          <a href="#目录结构-Files" class="heading-link"><i class="fas fa-link"></i></a>目录结构 Files</h2>
      <ul>
<li><code>waifu-tips.js</code> 包含了按钮和对话框的逻辑；</li>
<li><code>waifu-tips.json</code> 中定义了触发条件（<code>selector</code>，CSS 选择器）和触发时显示的文字（<code>text</code>）；</li>
<li><code>waifu.css</code> 是看板娘的样式表。</li>
</ul>
<p>源文件是对 Hexo 的 <span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="http://github.com/next-theme/hexo-theme-next" >NexT 主题</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span>有效的，为了适用于你自己的网页，可能需要自行修改，或增加新内容。<br><strong>警告：作者不对包括但不限于 <code>waifu-tips.js</code> 和 <code>waifu-tips.json</code> 文件中的内容负责，请自行确保它们是合适的。</strong></p>
<p>如果有任何疑问，欢迎提 Issue。如果有任何修改建议，欢迎提 Pull Request。</p>

        <h2 id="鸣谢-Thanks"   >
          <a href="#鸣谢-Thanks" class="heading-link"><i class="fas fa-link"></i></a>鸣谢 Thanks</h2>
      <p><a target="_blank" rel="noopener" href="https://www.browserstack.com/"><img height="80" src="https://live.browserstack.com/images/opensource/browserstack-logo.svg" alt="BrowserStack Logo"></a></p>
<blockquote>
<p>感谢 BrowserStack 容许我们在真实的浏览器中测试此项目。<br>Thanks to <span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://www.browserstack.com/" >BrowserStack</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span> for providing the infrastructure that allows us to test in real browsers!</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.jsdelivr.com"><img height="80" src="https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg"></a></p>
<blockquote>
<p>感谢 jsDelivr 提供的 CDN 服务。<br>Thanks jsDelivr for providing public CDN service.</p>
</blockquote>
<p>代码自这篇博文魔改而来：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://www.fghrsh.net/post/123.html" >https://www.fghrsh.net/post/123.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>点击看板娘的纸飞机按钮时，会出现一个彩蛋，这来自于 <span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="http://www.websiteasteroids.com/" >WebsiteAsteroids</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span>。</p>

        <h2 id="更多-More"   >
          <a href="#更多-More" class="heading-link"><i class="fas fa-link"></i></a>更多 More</h2>
      <p>更多内容可以参考：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://imjad.cn/archives/lab/add-dynamic-poster-girl-with-live2d-to-your-blog-02" >https://imjad.cn/archives/lab/add-dynamic-poster-girl-with-live2d-to-your-blog-02</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/xiazeyu/live2d-widget.js" >https://github.com/xiazeyu/live2d-widget.js</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/summerscar/live2dDemo" >https://github.com/summerscar/live2dDemo</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>关于后端 API 模型：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/fghrsh/live2d_api" >https://github.com/fghrsh/live2d_api</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/xiazeyu/live2d-widget-models" >https://github.com/xiazeyu/live2d-widget-models</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/xiaoski/live2d_models_collection" >https://github.com/xiaoski/live2d_models_collection</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>除此之外，还有桌面版本：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/amorist/platelet" >https://github.com/amorist/platelet</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/akiroz/Live2D-Widget" >https://github.com/akiroz/Live2D-Widget</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/zenghongtu/PPet" >https://github.com/zenghongtu/PPet</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/LikeNeko/L2dPetForMac" >https://github.com/LikeNeko/L2dPetForMac</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>以及 Wallpaper Engine：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/guansss/nep-live2d" >https://github.com/guansss/nep-live2d</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>

        <h2 id="许可证-License"   >
          <a href="#许可证-License" class="heading-link"><i class="fas fa-link"></i></a>许可证 License</h2>
      <p>Released under the GNU General Public License v3<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="http://www.gnu.org/licenses/gpl-3.0.html" >http://www.gnu.org/licenses/gpl-3.0.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>本仓库并不包含任何模型，用作展示的所有 Live2D 模型、图片、动作数据等版权均属于其原作者，仅供研究学习，不得用于商业用途。</p>
<p>Live2D 官方网站：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://www.live2d.com/en/" >https://www.live2d.com/en/</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://live2d.github.io/" >https://live2d.github.io</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>Live2D Cubism Core は Live2D Proprietary Software License で提供しています。<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://www.live2d.com/eula/live2d-proprietary-software-license-agreement_en.html" >https://www.live2d.com/eula/live2d-proprietary-software-license-agreement_en.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span><br>Live2D Cubism Components は Live2D Open Software License で提供しています。<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="http://www.live2d.com/eula/live2d-open-software-license-agreement_en.html" >http://www.live2d.com/eula/live2d-open-software-license-agreement_en.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<blockquote>
<p>The terms and conditions do prohibit modification, but obfuscating in <code>live2d.min.js</code> would not be considered illegal modification.</p>
</blockquote>
<p><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://community.live2d.com/discussion/140/webgl-developer-licence-and-javascript-question" >https://community.live2d.com/discussion/140/webgl-developer-licence-and-javascript-question</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>

        <h2 id="更新-Update"   >
          <a href="#更新-Update" class="heading-link"><i class="fas fa-link"></i></a>更新 Update</h2>
      <p>2018年10月31日，由 fghrsh 提供的原 API 停用，请更新至新地址。参考文章：<br><span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://www.fghrsh.net/post/170.html" >https://www.fghrsh.net/post/170.html</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<p>2020年1月1日起，本项目不再依赖于 jQuery。</p>
</div></div></div><div class="sidebar-wrap" id="sidebar-wrap"><aside class="sidebar" id="sidebar"><section class="sidebar-toc hide"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#Live2D-Widget"><span class="toc-number">1.</span> <span class="toc-text">
          Live2D Widget</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%89%B9%E6%80%A7-Feature"><span class="toc-number">1.1.</span> <span class="toc-text">
          特性 Feature</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%A4%BA%E4%BE%8B-Demo"><span class="toc-number">1.2.</span> <span class="toc-text">
          示例 Demo</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BE%9D%E8%B5%96-Dependencies"><span class="toc-number">1.3.</span> <span class="toc-text">
          依赖 Dependencies</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8-Usage"><span class="toc-number">1.4.</span> <span class="toc-text">
          使用 Usage</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Using-CDN"><span class="toc-number">1.4.1.</span> <span class="toc-text">
          Using CDN</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Self-host"><span class="toc-number">1.4.2.</span> <span class="toc-text">
          Self-host</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%90%8E%E7%AB%AF-API"><span class="toc-number">1.5.</span> <span class="toc-text">
          后端 API</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84-Files"><span class="toc-number">1.6.</span> <span class="toc-text">
          目录结构 Files</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%B8%A3%E8%B0%A2-Thanks"><span class="toc-number">1.7.</span> <span class="toc-text">
          鸣谢 Thanks</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9B%B4%E5%A4%9A-More"><span class="toc-number">1.8.</span> <span class="toc-text">
          更多 More</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%AE%B8%E5%8F%AF%E8%AF%81-License"><span class="toc-number">1.9.</span> <span class="toc-text">
          许可证 License</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9B%B4%E6%96%B0-Update"><span class="toc-number">1.10.</span> <span class="toc-text">
          更新 Update</span></a></li></ol></li></ol></section><!-- ov = overview--><section class="sidebar-ov"><div class="sidebar-ov-author"><div class="sidebar-ov-author__avatar"><img class="sidebar-ov-author__avatar_img" src="/images/avatar.png" alt="avatar"></div><p class="sidebar-ov-author__text">如果你相信光，那么光就可以照亮你</p></div><div class="sidebar-ov-state"><a class="sidebar-ov-state-item sidebar-ov-state-item--posts" href="/archives/"><div class="sidebar-ov-state-item__count">2</div><div class="sidebar-ov-state-item__name">归档</div></a><a class="sidebar-ov-state-item sidebar-ov-state-item--categories" href="/categories/"><div class="sidebar-ov-state-item__count">2</div><div class="sidebar-ov-state-item__name">分类</div></a><a class="sidebar-ov-state-item sidebar-ov-state-item--tags" href="/tags/"><div class="sidebar-ov-state-item__count">2</div><div class="sidebar-ov-state-item__name">标签</div></a></div><div class="sidebar-ov-cc"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en" target="_blank" rel="noopener" data-popover="知识共享许可协议" data-popover-pos="up"><img src="/yue-nice/images/cc-by-nc-sa.svg"></a></div></section></aside></div><div class="clearfix"></div></div></main><footer class="footer" id="footer"><div class="footer-inner"><div><span>Copyright © 2024</span><span class="footer__icon"><i class="fas fa-heart"></i></span><span>小月月</span></div></div></footer><div class="loading-bar" id="loading-bar"><div class="loading-bar__progress"></div></div><div class="back2top" id="back2top"><span class="back2top__icon"><i class="fas fa-rocket"></i></span></div></div><script src="https://cdn.jsdelivr.net/npm/jquery@v3.4.1/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.ui.min.js"></script><script src="/yue-nice/js/utils.js?v=2.1.1"></script><script src="/yue-nice/js/stun-boot.js?v=2.1.1"></script><script src="/yue-nice/js/scroll.js?v=2.1.1"></script><script src="/yue-nice/js/header.js?v=2.1.1"></script><script src="/yue-nice/js/sidebar.js?v=2.1.1"></script></body></html>